<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<title>Particle Demo</title>
	<script type="text/javascript" src="particle.js" ></script>
	<script type="text/javascript">
		window.onload = function(){
			var config = {
				// containerId: "mydiv",// canvas标签放入的标签id
				time: 50,
				vx: 4,	//小球x轴速度,正为右，负为左
				vy: 4,	//小球y轴速度
				height: 3,	// 和width保持一致
				width: 3, // 小球半径
				count: 200,		//点个数
				color: "rgb(0, 255, 237)", 	//点颜色
				stroke: "0, 255, 147", 		//线条颜色
				dist: 10000, 	//点吸附距离
				m_dist: 18000, 	//鼠标吸附加速距离
				max_conn: 10, 	//点到点最大连接数
				othersStyle: "background: linear-gradient(to left top, #ff3e3e 0%, #1919ff 100%);"  // 背景
			}
			cp = canvasParticle(config);
			//cp = canvasParticle();// 使用默认配置
		};
	</script>
</head>
<body>
	<!-- <div id="mydiv" ></div> -->
</body>
</html>